@bg-color: #b7d4a9;
@border-color: #000;
@body-color: #000;

* {
  margin: 0;
  padding: 0;
}
main {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  .gameBox {
    padding: 18px;
    width: 360px;
    height: 420px;
    box-sizing: border-box;
    border: solid @border-color 10px;
    border-radius: 20px;
    background-color: @bg-color;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    .playArea {
      width: 304px;
      height: 304px;
      border: solid @border-color 2px;
      box-sizing: border-box;
      position: relative;
      #snake {
        & > div {
          background-color: @body-color;
          width: 10px;
          height: 10px;
          border: 0.5px solid @bg-color;
          position: absolute;
          left: 50px;
          top: 50px;
          box-sizing: border-box;
        }
      }
      #food {
        position: absolute;
        left: 50px;
        top: 50px;
        width: 10px;
        height: 10px;
        display: flex;
        flex-flow: wrap row;
        justify-content: center;
        align-content: center;
        div {
          width: 4px;
          height: 4px;
          border: 0.5px solid @bg-color;
          background-color: tomato;
          box-sizing: border-box;
        }
      }
    }
    .snake-data {
      font-family: 'Courier New', Courier, monospace;
      font-size: 20px;
      font-weight: bold;
      display: flex;
      width: 100%;
      justify-content: space-between;
    }
  }
}
